<?xml version="1.0" encoding="UTF-8"?>
<!--
    MusicPliz
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>MusicPliz</title>
</h:head>
<h:body>
	<h:outputStylesheet name="style.css" library="css" />
	<ui:include src="/WEB-INF/includes/header.xhtml" />
	<div id="container">
	<h:form id="searchResultsForm">
		<h:messages showDetail="false" showSummary="true" infoClass="info" errorClass="error"/>
			<h:dataTable var="compte" value="#{SearchCompteBean.resultList}" binding="#{SearchCompteBean.dataTable}">
				<h:column>
					<f:facet name="header">
						<h:outputText value="type" />
					</f:facet>
					<h:outputText value="#{compte.type.name}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="nom" />
					</f:facet>
					<h:outputText value="#{compte.nom}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="instrument" />
					</f:facet>
					<h:outputText value="#{compte.instrument}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="nom de scène" />
					</f:facet>
					<h:outputText value="#{compte.nomScene}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="type de musique" />
					</f:facet>
					<h:outputText value="#{compte.nom}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="type de restaurant" />
					</f:facet>
					<h:outputText value="#{compte.typeResto}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="actions" />
					</f:facet>
					<h:commandButton value="compose" image="#{resource['images/profile_info.png']}"
						action="#{SearchCompteBean.viewProfile}" title="afficher le profile"/>
					<h:commandButton value="compose" image="#{resource['images/msg_unread.png']}"
						action="#{SearchCompteBean.composeMessage}" title="envoyer un message"/>
				</h:column>
			</h:dataTable>
		
	</h:form>
	<div class="navigationLinks">
		<h:link outcome="#{NavigationBean.getSearchSite()}" value="nouvelle recherche" />
		<h:link outcome="#{NavigationBean.getHomeSite()}" value="retourner au home" />
	</div>
	</div>
</h:body>
</html>
